package com.ybkj.daijia.api.member.alipay.sign;

import java.util.Map;

public class DriverOrderSign {

    public static String sign(Map<String, Object> map) {
        StringBuilder sb = new StringBuilder();

        sb.append("partner=").append("\"" + map.get("PartnerID") + "\"");
        sb.append("&seller_id=").append("\"" + map.get("SellerID") + "\"");
        sb.append("&out_trade_no=").append("\"" + map.get("tradeNO") + "\"");
        sb.append("&subject=").append("\"" + map.get("productName") + "\"");
        sb.append("&body=").append("\"" + map.get("productDescription") + "\"");
        sb.append("&total_fee=").append("\"" + map.get("amount") + "\"");
        sb.append("&notify_url=").append("\"" + map.get("notifyURL") + "\"");
        sb.append("&service=").append("\"" + "mobile.securitypay.pay" + "\"");
        sb.append("&payment_type=").append("\"" + "1" + "\"");
        sb.append("&_input_charset=").append("\"" + "utf-8" + "\"");
        sb.append("&it_b_pay=").append("\"" + "30m" + "\"");

        return sb.toString();
    }


}
